﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FastReport;
using System.Data;

namespace Prints
{
    public class Prints
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public Prints() { }
        private static System.Data.DataSet FDataSet;
        public static void yulan(System.Data.DataSet _DataSet, string _DataTableName)
        {
            FDataSet = _DataSet;
            Report report = new Report();
            report.RegisterData(FDataSet)  ;
            report.GetDataSource(_DataTableName).Enabled = true;
            report.Design();
            report.Dispose();
            //FastReport.Controls.
            
        }
    }
}
